<template>
	<view>
		<view class="title" :class="topNavStyle.class" :style="topNavStyle.style">
			<view class="flex_col">
				<view class="box1"></view>
				<view class="flex_grow flex_col flex_center tab">
					<view>服务到家</view>
				</view>
				<view class="box1 align_r">
					
				</view>
			</view>
		</view>
		
		<card-swiper></card-swiper>
		<!--通知-->
		<view  class="wrap">
			<u-notice-bar mode="vertical" :list="note_list"></u-notice-bar>
		</view>
		
		<!--认证-->
		<view  class="in_title u-font-bold u-font-35" style="display: inline-block;">
			<view class="in_ui" style="">
				<u-icon name="integral-fill" color="#00ff00"></u-icon>实名认证
			</view>
			<view  class="in_ui" style="">
				<u-icon name="integral-fill" color="#00ff00"></u-icon>健康认证
			</view>
			<view  class="in_ui" style="">
				<u-icon name="integral-fill" color="#00ff00"></u-icon>专业认证
			</view>
		
		</view>
		
		<!--列表主体 -->
		<view class="u-flex-col u-col-center" style="margin-top: -15rpx;" >
			<view class="yue_li u-flex u-margin-top-20">
				<view class="yue_li_left u-flex u-row-center u-col-center">
					<view class="u-font-30 u-font-bold u-color-balck6">
						<image :src="img" class="yunimg" style=""></image>
					</view><!--{{item.yuyue_time}}-->
				</view>
				
				<view class="yue_li_right u-flex-col" style="">
					<view class="top_title" style="">
						<text class="u-font-bold u-font-28 u-color-balck3 z_titles" style="display: inline-block;">皇家足疗</text>
						<text class="u-font-bold u-font-28 u-color-balck3 y_person"  style="display: inline-block;float: right;font-size: 28rpx;padding-right:10%;">已预约：3492</text>
					</view>
					
					<text class="u-font-28 u-color-balck6" style="margin-top: 10rpx;margin-bottom: 10rpx;font-size: 28rpx;">219元/次 70分钟</text>
					<text class="u-font-28 u-color-balck6 uni-lastmsg" style="margin-top: 10rpx;margin-bottom: 10rpx;font-size: 28rpx;" >
						理疗部位与服务：手部按摩、背部、足部、肩部、腰部、头部、颈部、采耳、洗浴、温泉、刮痧、拔火罐
					</text>
					<text class="u-font-22 u-color-balck6 u-type-success"></text><!--{{item.starx}}-->
				</view>
				<view class="yue_li_rr">
					<u-button class="yy" type="success" shape="square" size="medium" style=""   @tap="gotoLunBo">预约</u-button>
				
				</view>
				<!-- <view  class="u-margin-top-20">
					<u-empty text="没有可预约内容" icon-size="80" mode="data"></u-empty>
				</view> -->
			</view>
		
		
		
		
		
		
		</view>
		
		<view class="u-flex-col u-col-center" style="margin-top: -15rpx;" >
			<view class="yue_li u-flex u-margin-top-20">
				<view class="yue_li_left u-flex u-row-center u-col-center">
					<view class="u-font-30 u-font-bold u-color-balck6">
						<image :src="img" class="yunimg" style=""></image>
					</view><!--{{item.yuyue_time}}-->
				</view>
				
				<view class="yue_li_right u-flex-col" style="">
					<view class="top_title" style="">
						<text class="u-font-bold u-font-28 u-color-balck3 z_titles" style="display: inline-block;">皇家足疗</text>
						<text class="u-font-bold u-font-28 u-color-balck3 y_person"  style="display: inline-block;float: right;font-size: 28rpx;padding-right:10%;">已预约：3492</text>
					</view>
					
					<text class="u-font-28 u-color-balck6" style="margin-top: 10rpx;margin-bottom: 10rpx;font-size: 28rpx;">219元/次 70分钟</text>
					<text class="u-font-28 u-color-balck6 uni-lastmsg" style="margin-top: 10rpx;margin-bottom: 10rpx;font-size: 28rpx;" >
						理疗部位与服务：手部按摩、背部、足部、肩部、腰部、头部、颈部、采耳、洗浴、温泉、刮痧、拔火罐
					</text>
					<text class="u-font-22 u-color-balck6 u-type-success"></text><!--{{item.starx}}-->
				</view>
				<view class="yue_li_rr">
					<u-button class="yy" type="success" shape="square" size="medium" style=""   @tap="gotoLunBo">预约</u-button>
				
				</view>
				<!-- <view  class="u-margin-top-20">
					<u-empty text="没有可预约内容" icon-size="80" mode="data"></u-empty>
				</view> -->
			</view>
		
		
		
		
		
		
		</view>
		<view class="u-flex-col u-col-center" style="margin-top: -15rpx;" >
			<view class="yue_li u-flex u-margin-top-20">
				<view class="yue_li_left u-flex u-row-center u-col-center">
					<view class="u-font-30 u-font-bold u-color-balck6">
						<image :src="img" class="yunimg" style=""></image>
					</view><!--{{item.yuyue_time}}-->
				</view>
				
				<view class="yue_li_right u-flex-col" style="">
					<view class="top_title" style="">
						<text class="u-font-bold u-font-28 u-color-balck3 z_titles" style="display: inline-block;">皇家足疗</text>
						<text class="u-font-bold u-font-28 u-color-balck3 y_person"  style="display: inline-block;float: right;font-size: 28rpx;padding-right:10%;">已预约：3492</text>
					</view>
					
					<text class="u-font-28 u-color-balck6" style="margin-top: 10rpx;margin-bottom: 10rpx;font-size: 28rpx;">219元/次 70分钟</text>
					<text class="u-font-28 u-color-balck6 uni-lastmsg" style="margin-top: 10rpx;margin-bottom: 10rpx;font-size: 28rpx;" >
						理疗部位与服务：手部按摩、背部、足部、肩部、腰部、头部、颈部、采耳、洗浴、温泉、刮痧、拔火罐
					</text>
					<text class="u-font-22 u-color-balck6 u-type-success"></text><!--{{item.starx}}-->
				</view>
				<view class="yue_li_rr">
					<u-button class="yy" type="success" shape="square" size="medium" style=""   @tap="gotoLunBo">预约</u-button>
				
				</view>
				<!-- <view  class="u-margin-top-20">
					<u-empty text="没有可预约内容" icon-size="80" mode="data"></u-empty>
				</view> -->
			</view>
		
		
		
		
		
		
		</view>
		
		<!--如果没有网络-->
		<u-no-network></u-no-network>
		<u-toast ref="uToast" />
		
	</view>
</template>

<script>
	import cardSwiper from "@/components/helang-cardSwiper/helang-cardSwiper"
	export default {
		data() {
			return {
				// topNavIndex:0,
				// topNavArr:['推荐','热门','新作'],
				// pageScrollTop:0,	// 页面滚动距离
				
				list: [{
						image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
						//title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					},
					{
						image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
						//title: '身无彩凤双飞翼，心有灵犀一点通'
					},
					{
						image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
						//title: '谁念西风独自凉，萧萧黄叶闭疏窗，沉思往事立残阳'
					}
				],
				note_list: [
					'寒雨连江夜入吴',
					'平明送客楚山孤',
					'洛阳亲友如相问',
					'一片冰心在玉壶'
				],
				img:'/static/uview/example/massage.jpg',
			}
		},
		components:{
			cardSwiper
		},
		computed:{
			topNavStyle(){
				let r = this.pageScrollTop  / 100;
				return {
					"class":r>=0.85?'style2':'',
					"style":`background-color: rgba(66, 185, 131,${r>=1?1:r});`
				}
			}
		},
		onLoad() {
			
		},
		//下拉刷新
		// onPullDownRefresh() {
		 
		// 			console.log('下拉刷新');
					
		// 		},
		// onReachBottom(e) {
		 
		// 			console.log('触底加载更多');
		//  },
		 onHide(){
			 
		 },
		// // 页面滚动监听
		// onPageScroll(e){
		// 	this.pageScrollTop = Math.floor(e.scrollTop);
		// },
		methods: {
			// 顶部导航改变 
			gotoLunBo(){
				// uni.redirectTo({
				// 	url: '/pages/subscribe/index'
				// })
				// uni.switchTab({
				//     url: '/pages/technician/index'
				// });
				// uni.navigateTo({
				// 	url: '/pages/subscribe/index'
				// })
				this.$u.route({
					url: '/pages/subscribe/index',
					// params: {
					// 	name: 'lisa'
					// }
				})
				
				
			}
		}
	}
</script>

<style lang="scss">
	@import "lib/global.scss";
	
	page{
		background-color: #F4F4F5;
	}
	.in_title{
		// margin-top:20rpx;
		width: 100%;
	}
	.in_ui{
		width: 33%;font-size: 30rpx;display: inline-block;text-align: center;padding: 10rpx 0;
	}
	.yunimg{
		width: 150rpx;
		height: 150rpx;
		margin:5rpx 50rpx!important;
		border-radius: 15rpx;
	}
	.top_title{
		margin-top: 10rpx;
	}
	.z_titles{
		font-weight:700;
	}
	.y_person{
		font-size: 28rpx;
	}
	.wrap {
		padding: 0 15rpx 15rpx 15rpx;
	}
	page{
		background-color: #F6F6F6;
	}
	.topcent{
		width: 750rpx;
		background-color: #FFFFFF;
	}
	.yue_li{
		width: 97%;//720rpx
		border-radius: 10rpx;
		background-color: #FFFFFF;
		padding: 5rpx;
		//margin: 30rpx 0;
		height: 220rpx;
	}
	.left_xian{
		width: 10rpx;
		height: 170rpx;
		border-top-left-radius: 10rpx;
		border-bottom-left-radius: 10rpx;
		background-color: #18B566;
	}
	.yue_li_left{
		width: 80rpx;
		margin-left: 45rpx;
		border-radius: 15rpx;
	}
	.yue_li_right{
		width: 90%;
		margin-left:50rpx;
		//padding:0 1rpx;
	}
	.yue_li_rr{
		width: 120rpx;
		position: relative;
		top:-30rpx;
	}
	.yy{
		width: 110rpx;
		background-color:#19BE6B;
		height: 60rpx;
		color: #FFFFFF;
		//padding: 0 15rpx;
		border-radius: 10rpx;
		float: right;
		margin: 0 30rpx;
		padding: 0 20rpx!important;
		// background-color:#19BE6B;
		// color: #FFFFFF;
		// padding: 0 15rpx;
		// border-radius: 10rpx;
		
		// width: auto;margin-right: 25rpx;float: right;margin-left: 30rpx;height:50rpx;
	}
	 .uni-lastmsg {
	     width: 100%;
	     color: #8b8b8b;
	     display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/
	     overflow: hidden;
	     word-break: break-all; 
	     text-overflow: ellipsis;  /* 超出部分省略号 */
	     -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/
	     -webkit-line-clamp: 1; /** 显示的行数 **/
	    
	}
	/* 标题栏 */
	.title{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: auto;
		padding-top: var(--status-bar-height);
		z-index: 10;
		background-color: rgba(66,185,131,0);
		color: rgba(255,255,255,0.8);
		
		&>view{
			// height: 44px;
		}
		
		.box1{
			width: 60rpx;
			margin: 0 40rpx;
			font-size: 36rpx;
		}
		
		
		.tab{
			&>view{
				margin: 0 0rpx;
				line-height: 64rpx;
				font-size: 36rpx;
				position: relative;
				letter-spacing: 0;
				transition: transform 0.3s ease-in-out 0s;
				transform: scale(1,1);
				
				&.active{
					color: rgba(255,255,255,1);
					transform: scale(1.15,1.15);
				}
			}
		}
		
		&.style2{
			color: #FFF;
			background-color: rgba(66, 185, 131,1);
			
			.tab{
				&>view{
					&.active{
						color: #FFF;
					}
				}
			}
		}
	}

</style>